package com.example.fp.cgc.controller

import com.example.fp.cgc.entity.Click
import com.example.fp.cgc.mapper.CgcOverseasMapper
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.context.annotation.Lazy
import org.springframework.web.bind.annotation.*
import springfox.documentation.swagger2.annotations.EnableSwagger2

/**
 * @author 蔡
 * @since 2020-01-03
 */
@CrossOrigin
@RestController(value = "海外")
@EnableSwagger2
open class OverseaAppController {
    @Autowired
    @Lazy
    lateinit var com: CgcOverseasMapper

    @RequestMapping(value = ["/getOverseasClickList"],method = [RequestMethod.PUT])
    open fun getOverseasClickList(): List<Click> = com.selectClick()

}